﻿using Book.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Book.IRepositories
{
    public interface IArticleRepository
    {
        void AddArticle(string title, string content, string author, string menuid, string markdown);
        List<ArticleEntity> GetArticleByParentId(string menuid);
        ArticleEntity GetArticleByAId(string articleid);
        public List<ArticleEntity> GetAllArticle();
        public List<ArticleEntity> GetAllNews();
        public void DeleteArticle(string id);
        public void UpdateArticle(string id, string title, string author, string content, string markdown);
    }

}
